package edu.seu.mart.service;

import edu.seu.mart.entity.Pager;
import edu.seu.mart.model.Order;

import java.util.Date;

/**
 * Created by Administrator on 2015/3/11.
 */
public interface IOrderService {

    public void add(Order order);

    public void delete(int id);

    public void update(int id, String state, Double total);

    public Order load(int orderId);

    public Pager<Order> findOrder();

    public void deleteChecked(String[] ids);

    public Pager<Order> findOrder(int orderId);

    public void upadteState(int id, String state);

    public Double getMoneyOfOneDayBySeller(Date time, int seller);

    public Double getMoneyOfOneMonthBySeller(int year, int i, int seller);

    public Pager<Order> loadBySellerId(int id);

    public Pager<Order> findBySellState(int seller,String state);

    public void updateState(int id, String state);

    public Pager<Order> loadByUserId(int id);

    public Pager<Order> findByUserState(int user,String state);

    public Pager<Order> findByState(int seller,String s1,String s2);
}
